import Vue from 'vue'
import Router from 'vue-router'
import home from '../pages/home'
import topic from '../pages/allTopic'
import activity from '../pages/allActivity'
import custom from '../pages/customMade'
import detail from '../pages/goodsDetail'

Vue.use(Router)

export default new Router({
	mode: 'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: home,
    },{
      path: '/topic',
      name: 'topic',
      component: topic,
    },{
    	path: '/activity',
    	name: 'activity',
    	component: activity,
    },{
    	path: '/custom',
    	name: 'custom',
    	component: custom,
    },{
    	path: '/detail',
    	name: 'detail',
    	component: detail,
    }
  ],
  scrollBehavior (to, from, savedPosition) {
  	return {
  		x: 0, 
  		y: 0
  	}
	}
})
